package com.hawthorn.admin.feign;

import com.hawthorn.entity.dto.SysUserDTO;
import com.hawthorn.platform.config.FeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.FeignFallback;
import org.springframework.cloud.openfeign.HystrixFallbackFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * <p>todo odo redis服务feign</p>
 * @author: andyten@tom.com | xukaixing@hotmail.com
 * @created: 2021/12/4 1:57 PM
 * @version v1.0.1
 * @copyright: Copyright (c)  andyten
 */
@FeignClient(name = "sentury-redis", path = "/redis/user", configuration = FeignConfig.class, fallbackFactory = HystrixFallbackFactory.class)
public interface RedisUserFeignService extends FeignFallback
{
  @GetMapping(value = "/updateUserCache")
  void updateUserCache(@RequestBody SysUserDTO sysUserDTO);
}
